import axios from "../../utils/axios";


// 获取轮播图
export function getList(query) {
    return axios({
        url: "/RotaryPlantingMap/getList",
        method: "get",
        params: query
    });
}

// 获取用户列表
export function getIdsUser(query) {
    return axios({
        url: "/RotaryPlantingMap/getIdsUser",
        method: "post",
        params: query
    });
}
//分类
export function getCategory(query) {
    return axios({
        url: "/goldendays-goods/busCommodityMgr/getCategory",
        method: "get",
        params: query
    });
}
// 删除
export function delRotaryPlanting(data) {
    return axios({
        url: "/RotaryPlantingMap/delRotaryPlanting",
        method: "post",
        data: data
    });
}

// 开启关闭状态
export function updateBusCommodityBanner(data) {
    return axios({
        url: "/RotaryPlantingMap/updateBusCommodityBanner",
        method: "post",
        data: data
    });
}
// 添加
export function addRotaryPlanting(data) {
    return axios({
        url: "/RotaryPlantingMap/addRotaryPlanting",
        method: "post",
        data: data
    });
}
